﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;
using System.Web.Profile;

public partial class Admin_User_Edit : BasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void lnkSave_Click(object sender, EventArgs e)
    {
        MembershipUser user = Membership.CreateUser(txtUserName.Text, txtPassword.Text, txtEmail.Text);
        ProfileBase profile = ProfileBase.Create(txtUserName.Text);
        if (profile != null)
        {
            profile.SetPropertyValue("FullName", txtFullName.Text);
        }
        profile.Save();
    }

    protected void lnkClose_Click(object sender, EventArgs e)
    {

    }

    protected void chkRoles_DataBound(object sender, EventArgs e)
    {

    }
}